package com.weight.mp3;

public class SoundBean {
    private String temUrl;
    private String url;
    private long position;
    private long duration;
    private boolean isPlay;
    private String startTime = "00:00";
    private String endTime = "00:00";


    public String getStartTime() {
        return startTime;
    }

    public long getPosition() {
        return position;
    }

    public void setPosition(long position) {
        this.position = position;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isPlay() {
        return isPlay;
    }

    public void setPlay(boolean play) {
        isPlay = play;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String toString(){
        return temUrl;
    }


    public static SoundBean create(String url){
        SoundBean soundBean = new SoundBean();
        soundBean.setUrl(url);
        soundBean.temUrl = url;
        return soundBean;
    }
}
